﻿using AbpApplication.AppServices;
using AbpApplication.InPut;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AbpWebapi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class CustomController : ControllerBase
    {

        private readonly ICustomService customService;

        public CustomController(ICustomService customService)
        {
            this.customService = customService;
        }

        [HttpPost]
        public async Task<ApiResponseCustom> CreateTaskOrderAuto(InPut_CustomService InPut)=>await customService.CreateTaskOrderAuto(InPut);
        [HttpPost]
        public async Task<ApiResponseCustom> RemoveTaskOrderAuto(string hSerial)=>await customService.RemoveTaskOrderAuto(hSerial);
        
    }
}
